package com.lagou.sqlSession;

import java.beans.IntrospectionException;
import java.lang.reflect.InvocationTargetException;
import java.sql.SQLException;
import java.util.List;

public interface SqlSession {

    //查询所有
    <E> List<E> selectList(String statementId,Object... params) throws Exception;


    //查询其中一条
    <T>T selectOne(String statementId,Object... params) throws Exception;

    //新增
    int insert(String statement, Object... params) throws Exception;

    //更新
    int update(String statement, Object... params) throws Exception;

    //删除
    int delete(String statement, Object... params) throws Exception;

    //为DAO接口生成代理实现类
    <T>T getMapper(Class<?> mapperClass);






}
